package org.zsl.controller.filter;

import javax.servlet.*;
import java.io.IOException;

public class Filter2 implements Filter {
    public void init(FilterConfig config) throws ServletException {

        System.out.println("filter2:init");
    }

    public void destroy() {

        System.out.println("filter2:destroy");
    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws ServletException, IOException {
        // dosth

        System.out.println("filter2:doFilter");
        chain.doFilter(request, response);
    }
}
